package com.easylinkin.linkappapi.childinspection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author linWenLe
 * @Date: 2024/4/03
 * @Description:    巡检点实体
 */
@Data
@TableName("child_inspection_point")
public class InspectionPointEntity extends Model<InspectionPointEntity> {

    private String id;

    /**
     * 任务点编号
     */
    private String inspectionPointCode;

    /**
     * 任务点名称
     */
    private String inspectionPointName;

    /**
     * 巡检点描述
     */
    private String description;

    /**
     * 需拍照，0-不需要，1-需要
     */
    private int needPhotograph = 0;

    private String pointImage;

    /**
     * 是否立即生效，0-立即生效，1-次日生效
     */
    private int effect = 1;

    /**
     * 二维码id
     */
    private String qrCodeId;

    /**
     * 二维码状态
     */
    @TableField(exist = false)
    private Integer qrCodeStatus;

    @TableField(exist = false)
    private String qrCodeImage;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 状态 0-待巡检，1-正常，2-需整改, 3-已整改
     */
    private int status = 0;

    /**
     * 巡检次数
     */
    @TableField(exist = false)
    private int inspectionCount = 0;
    /**
     * 巡检记录
     */
    @TableField(exist = false)
    private int inspectionStatus = 0;

    /**
     * 巡检点状态 0：关闭，1：开启
     */
    private int inspectionPointStatus = 1;

    private Date createTime;

    private Date modifyTime;

    private String tenantId;

    private String creator;

    private String modifier;

    @TableField(exist = false)
    List<InspectionRecordEntity> list = new ArrayList<>();
}
